package com.lsh.airticket.dao;

import com.lsh.airticket.entity.Airroute;
import org.springframework.stereotype.Repository;

import java.util.HashMap;
import java.util.List;

/**
 * @author lsh
 * @date 2021/2/16
 **/
@Repository
public interface AirrouteDao {

    //根据 AirrouteId 查询一条数据
    Airroute findTbAirrouteById(Integer AirrouteId);

    //查找所有
    List<Airroute> findTbAirrouteAll();

    //插入一条数据
    int insertTbAirroute(Airroute airroute);

    //根据 起点和终点的城市查找 所有的航线
    List<Airroute> findAirrouteByCity(HashMap<String, Object> map);

    // 删除数据
    int deleteTbAirrouteById(Integer airrouteId);


}
